//
//
//
// FileAdapter.h

#ifndef _FILE_ADAPTER_H_
#define _FILE_ADAPTER_H_

#include <fstream>
#include "BaseLogAdapter.h"
#include "File.h"
class FileAdapter : public BaseLogAdapter
{
	public:
		FileAdapter();
		~FileAdapter();

		virtual bool Open(const std::string& path);
		virtual bool Close(void);
		virtual void Flush(void);
		virtual void Report(void);
		virtual bool Log(const std::string& info);
		virtual LogManager::ADAPTER_TYPE AdapterType(void);

	private:
		File _file;
};
#endif // _FILE_ADAPTER_H_
